<?
	$nav = array("Home" => "", "Reservation" => "reservation/", "Ticket" => "reservation/ticket");

	$tpl->assign("dsfm_nav", $nav);

	$table = new Table( array(
		"id" => array(
			"width" => 20,
			"title" => "ID",
			"type" => "order",
		),

		"ticket" => array(
			"width" => 200,
			"type" => "text",
			"link" => 'ticket/edit.php?id=$id'
		),

		"price" => array(
			"width" => 200,
			"type" => "text",
			"link" => 'ticket/edit.php?id=$id'
		),

	));

    $sql = "SELECT * FROM reservation_ticket";
    $rss = $db->query($sql);

	$data = new Data($rss);

	$table->add_data($data->fetch());	

	$table->add_tool( array(
		"edit" => array(
			"link" => 'ticket/edit.php?id=$id',
			"icon" => "edit.png"
		),

		"delete" => array(
			"link" => 'ticket/delete.php?id=$id',
			"icon" => "delete.png"
		)
	));

    $table->rain_display($tpl, "table");
?>